import request from '@/utils/request'

const api = {
  getProutingUrl: '/mes_prouting/get_prouting',
  addProutingUrl: '/mes_prouting/add_prouting',
}

export async function addProutingApi(params: Map<string, any>) {
  const res = await request({
    url: api.addProutingUrl,
    method: 'post',
    data: params,
  })
  return res
}

export async function getProutingApi(params: Map<string, any>) {
  const res = await request({
    url: api.getProutingUrl,
    method: 'get',
    params: params,
  })
  return res
}
